import java.util.Timer;
import java.util.TimerTask;

public class ThreadDemo {
    public static void main(String[] args) {
        Timer timer = new Timer();
        timer.schedule(new TimerTask(){
            @Override
            public void run() {
                System.out.println("hello4");
            }
        },4000);
        System.out.println("hello0");
    }
}
